<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Dissasemble: src/common.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="Hopper_v3.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Dissasemble
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">This project receives as input a file.o and displays the assembly code for that object.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('common_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">src/common.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="common_8h__dep__incl.png" border="0" usemap="#src_2common_8hdep" alt=""/></div>
<map name="src_2common_8hdep" id="src_2common_8hdep">
<area shape="rect" id="node3" href="file_loader_8h.html" title="src/fileLoader/fileLoader.h" alt="" coords="168,83,339,112"/><area shape="rect" id="node9" href="decode_8h.html" title="src/process/decode/decode.h" alt="" coords="529,83,721,112"/><area shape="rect" id="node11" href="decode_8c.html" title="src/process/decode/decode.c" alt="" coords="572,237,764,267"/><area shape="rect" id="node5" href="file_loader_8c.html" title="src/fileLoader/fileLoader.c" alt="" coords="5,160,176,189"/><area shape="rect" id="node7" href="my_obj_dump_8c.html" title="src/myObjDump.c" alt="" coords="200,160,328,189"/><area shape="rect" id="node13" href="header_process_8c.html" title="src/process/elfProcess/headerProcess.c" alt="" coords="413,160,672,189"/><area shape="rect" id="node15" href="ins_parser_8h.html" title="src/process/instructionRefParser/insParser.h" alt="" coords="747,160,1029,189"/><area shape="rect" id="node18" href="ins_parser_8c.html" title="src/process/instructionRefParser/insParser.c" alt="" coords="788,237,1071,267"/></map>
</div>
</div>
<p><a href="common_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__addresing_and_type.html">_addresingAndType</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the attributes that specifies the addressing method.  <a href="struct__addresing_and_type.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__prefix.html">_prefix</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Structure attributes associated with a prefix.  <a href="struct__prefix.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">union &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union__opcode.html">_opcode</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the attributes that an opcode have.  <a href="union__opcode.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">union &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union__mod__reg.html">_mod_reg</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores ModReg record attributes you set the registers used as operands.  <a href="union__mod__reg.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct___machine_inst_format.html">_MachineInstFormat</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Machine Instruction Format.  <a href="struct___machine_inst_format.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_p_c_o_d_e___p_r_o_p_e_r_t_i_e_s.html">OPCODE_PROPERTIES</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Properties of an operation code..  <a href="struct_o_p_c_o_d_e___p_r_o_p_e_r_t_i_e_s.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ad8ce12d83f204245685f98caf9d03944">UINT8</a>&#160;&#160;&#160;unsigned char</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">One byte.  <a href="#ad8ce12d83f204245685f98caf9d03944"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a69afa2e50b905f4eab1f2df8a3fd9f23">UINT32</a>&#160;&#160;&#160;unsigned int</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">One instruction.  <a href="#a69afa2e50b905f4eab1f2df8a3fd9f23"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#aac92c5ec332dafe0abb24688dad1b795">INT32</a>&#160;&#160;&#160;int</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores 32 bits.  <a href="#aac92c5ec332dafe0abb24688dad1b795"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a7e125472d65b57f10905accbed140b99">INT8</a>&#160;&#160;&#160;char</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores 8 bits.  <a href="#a7e125472d65b57f10905accbed140b99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a35962d72640f5d7417802c89b4eb5688">BYTE</a>(x)&#160;&#160;&#160;(x*8)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">One byte.  <a href="#a35962d72640f5d7417802c89b4eb5688"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a4aa5e2926d1ef8bcce281e0eab30025a">BIT2BYTE</a>(x)&#160;&#160;&#160;(x/8)+(x%8?1:0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">One byte in binary.  <a href="#a4aa5e2926d1ef8bcce281e0eab30025a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a22613dfae1a9dc932b6a4513895411c9">NUM_OPP_SUPPORTED</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">supported number of operators  <a href="#a22613dfae1a9dc932b6a4513895411c9"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__addresing_and_type.html">_addresingAndType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ac9bde6cb5ff196ce2027a47a647b49da">ADDRESSING_TYPE</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the attributes that specifies the addressing method.  <a href="#ac9bde6cb5ff196ce2027a47a647b49da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__prefix.html">_prefix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#afdc67d28e3a783fcf6783d0a72ad54cb">PREFIX</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Structure attributes associated with a prefix.  <a href="#afdc67d28e3a783fcf6783d0a72ad54cb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef union <a class="el" href="union__opcode.html">_opcode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a290890ba522b65bd476d39f9e3eb2268">OPCODE</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the attributes that an opcode have.  <a href="#a290890ba522b65bd476d39f9e3eb2268"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef union <a class="el" href="union__mod__reg.html">_mod_reg</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a52e00366c03f672b7fe916eec1f2003c">MOD_REG_RM</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores ModReg record attributes you set the registers used as operands.  <a href="#a52e00366c03f672b7fe916eec1f2003c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct___machine_inst_format.html">_MachineInstFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a66e747e261292e6aa8b1428bbc5957f7">MACHINE_INSTRUCTION</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Machine Instruction Format.  <a href="#a66e747e261292e6aa8b1428bbc5957f7"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a4aa5e2926d1ef8bcce281e0eab30025a"></a><!-- doxytag: member="common.h::BIT2BYTE" ref="a4aa5e2926d1ef8bcce281e0eab30025a" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#a4aa5e2926d1ef8bcce281e0eab30025a">BIT2BYTE</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;(x/8)+(x%8?1:0)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>One byte in binary. </p>

</div>
</div>
<a class="anchor" id="a35962d72640f5d7417802c89b4eb5688"></a><!-- doxytag: member="common.h::BYTE" ref="a35962d72640f5d7417802c89b4eb5688" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#a35962d72640f5d7417802c89b4eb5688">BYTE</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;(x*8)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>One byte. </p>

</div>
</div>
<a class="anchor" id="aac92c5ec332dafe0abb24688dad1b795"></a><!-- doxytag: member="common.h::INT32" ref="aac92c5ec332dafe0abb24688dad1b795" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#aac92c5ec332dafe0abb24688dad1b795">INT32</a>&#160;&#160;&#160;int</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores 32 bits. </p>

</div>
</div>
<a class="anchor" id="a7e125472d65b57f10905accbed140b99"></a><!-- doxytag: member="common.h::INT8" ref="a7e125472d65b57f10905accbed140b99" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#a7e125472d65b57f10905accbed140b99">INT8</a>&#160;&#160;&#160;char</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores 8 bits. </p>

</div>
</div>
<a class="anchor" id="a22613dfae1a9dc932b6a4513895411c9"></a><!-- doxytag: member="common.h::NUM_OPP_SUPPORTED" ref="a22613dfae1a9dc932b6a4513895411c9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#a22613dfae1a9dc932b6a4513895411c9">NUM_OPP_SUPPORTED</a>&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>supported number of operators </p>

</div>
</div>
<a class="anchor" id="a69afa2e50b905f4eab1f2df8a3fd9f23"></a><!-- doxytag: member="common.h::UINT32" ref="a69afa2e50b905f4eab1f2df8a3fd9f23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#a69afa2e50b905f4eab1f2df8a3fd9f23">UINT32</a>&#160;&#160;&#160;unsigned int</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>One instruction. </p>

</div>
</div>
<a class="anchor" id="ad8ce12d83f204245685f98caf9d03944"></a><!-- doxytag: member="common.h::UINT8" ref="ad8ce12d83f204245685f98caf9d03944" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="common_8h.html#ad8ce12d83f204245685f98caf9d03944">UINT8</a>&#160;&#160;&#160;unsigned char</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>One byte. </p>

</div>
</div>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="ac9bde6cb5ff196ce2027a47a647b49da"></a><!-- doxytag: member="common.h::ADDRESSING_TYPE" ref="ac9bde6cb5ff196ce2027a47a647b49da" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct__addresing_and_type.html">_addresingAndType</a>  <a class="el" href="common_8h.html#ac9bde6cb5ff196ce2027a47a647b49da">ADDRESSING_TYPE</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores the attributes that specifies the addressing method. </p>

</div>
</div>
<a class="anchor" id="a66e747e261292e6aa8b1428bbc5957f7"></a><!-- doxytag: member="common.h::MACHINE_INSTRUCTION" ref="a66e747e261292e6aa8b1428bbc5957f7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct___machine_inst_format.html">_MachineInstFormat</a>  <a class="el" href="common_8h.html#a66e747e261292e6aa8b1428bbc5957f7">MACHINE_INSTRUCTION</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Machine Instruction Format. </p>

</div>
</div>
<a class="anchor" id="a52e00366c03f672b7fe916eec1f2003c"></a><!-- doxytag: member="common.h::MOD_REG_RM" ref="a52e00366c03f672b7fe916eec1f2003c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef union <a class="el" href="union__mod__reg.html">_mod_reg</a>  <a class="el" href="common_8h.html#a52e00366c03f672b7fe916eec1f2003c">MOD_REG_RM</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores ModReg record attributes you set the registers used as operands. </p>

</div>
</div>
<a class="anchor" id="a290890ba522b65bd476d39f9e3eb2268"></a><!-- doxytag: member="common.h::OPCODE" ref="a290890ba522b65bd476d39f9e3eb2268" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef union <a class="el" href="union__opcode.html">_opcode</a>  <a class="el" href="common_8h.html#a290890ba522b65bd476d39f9e3eb2268">OPCODE</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores the attributes that an opcode have. </p>

</div>
</div>
<a class="anchor" id="afdc67d28e3a783fcf6783d0a72ad54cb"></a><!-- doxytag: member="common.h::PREFIX" ref="afdc67d28e3a783fcf6783d0a72ad54cb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct__prefix.html">_prefix</a>  <a class="el" href="common_8h.html#afdc67d28e3a783fcf6783d0a72ad54cb">PREFIX</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Structure attributes associated with a prefix. </p>

</div>
</div>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="common_8h.html">common.h</a>      </li>

    <li class="footer">Generated on Thu Oct 11 2012 12:32:08 for Dissasemble by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
